<!--%import("filter/insert_quiz.xml")-->
<!--%import("js/quiz.js")-->
<!--#include("header.html")-->

<script type="text/javascript">
	jQuery(document).ready(function() { 
		(function($){
			// Dialog			
			$('#start_date, #end_date').datepicker({ dateFormat: 'yymmdd' });
			// YmdHis

			$("#use_question_activation_date").change(function(){
				$("#use_timing_row").toggle();
			});
			
		})(jQuery);
	});
</script>

<form action="./" method="post" onsubmit="return procFilter(this, insert_quiz)" enctype="multipart/form-data">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />

    <table cellspacing="0" class="rowTable">

    <!--@if($logged_info->is_admin!='Y')-->
    <input type="hidden" name="mid" value="{$module_info->mid}" />
    <!--@else-->
    <tr>
        <th scope="row"><div>{$lang->mid}</div></th>
        <td>
            <input type="text" name="mid" value="{$module_info->mid}" class="inputTypeText w200" />
            <p>{$lang->about_mid}</p>
        </td>
    </tr>
    <!--@end-->
    <tr>
        <th scope="row"><div>{$lang->module_category}</div></th>
        <td>
            <select name="module_category_srl">
                <option value="0">{$lang->notuse}</option>
                <!--@foreach($module_category as $key => $val)-->
                <option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
                <!--@end-->
            </select>
            <p>{$lang->about_module_category}</p>
        </td>
    </tr>

    <tr>
        <th scope="row"><div>{$lang->browser_title}</div></th>
        <td>
            <input type="text" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}"  class="inputTypeText w400" id="browser_title"/>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','browser_title')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_browser_title}</p>
        </td>
    </tr>

    <tr>
        <th scope="row"><div>{$lang->start_date}</div></th>
        <td>
            <input type="text" name="start_date" value="{htmlspecialchars($module_info->start_date)}"  class="inputTypeText" id="start_date"/>
            <p>{$lang->about_start_date}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->end_date}</div></th>
        <td>
            <input type="text" name="end_date" value="{htmlspecialchars($module_info->end_date)}"  class="inputTypeText" id="end_date"/>
            <p>{$lang->about_end_date}</p>
        </td>
    </tr>    
    <tr>
        <th scope="row"><div>{$lang->use_question_activation_date}</div></th>
        <td>
        	<input type="checkbox" name="use_question_activation_date" value="Y" <!--@if($module_info->use_question_activation_date=='Y')-->checked="checked"<!--@end-->  class="checkbox" id="use_question_activation_date" />
            <p>{$lang->about_use_question_activation_date}</p>
        </td>
    </tr>
    <tr id="use_timing_row" style="<!--@if($module_info->use_question_activation_date!='Y')-->display:none<!--@end-->">		
        <th scope="row"><div>{$lang->use_timing}</div></th>
        <td>
        	<input type="checkbox" name="use_timing" value="Y" <!--@if($module_info->use_timing=='Y')-->checked="checked"<!--@end-->  class="checkbox" id="use_timing" />
            <p>{$lang->about_use_timing}</p>
        </td>
    </tr>           
    <tr>
        <th scope="row"><div>{$lang->layout}</div></th>
        <td>
            <select name="layout_srl">
            <option value="0">{$lang->notuse}</option>
            <!--@foreach($layout_list as $key => $val)-->
            <option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
            <!--@end-->
            </select>
            <p>{$lang->about_layout}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->skin}</div></th>
        <td>
            <select name="skin">
                <!--@foreach($skin_list as $key=>$val)-->
                <option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='xe_board'))-->selected="selected"<!--@end-->>{$val->title}</option>
                <!--@end-->
            </select>
            <p>{$lang->about_skin}</p>
        </td>
    </tr>    
    <tr>
        <th scope="row"><div>{$lang->header_text}</div></th>
        <td>
            <textarea name="header_text" class="inputTypeTextArea fullWidth" id="header_text">{htmlspecialchars($module_info->header_text)}</textarea>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','header_text')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_header_text}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->footer_text}</div></th>
        <td>
            <textarea name="footer_text" class="inputTypeTextArea fullWidth" id="footer_text">{htmlspecialchars($module_info->footer_text)}</textarea>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','footer_text')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_footer_text}</p>
        </td>
    </tr>
    <tr>
        <th colspan="2" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
            <span class="button"><input type="button" value="{$lang->cmd_back}" onclick="history.back(); return false;" /></span>
        </th>
	</tr>
    </table>

</form>
